package homework3;

public class OEmptyList implements IOList {

	@Override
	public IOList addElt(Object o) {
		return new OList(o, this);
	}

	@Override
	public IOList remElt(Object o) {
		throw new IllegalStateException("Empty OEmptyList");
	}

	@Override
	public boolean hasElt(Object o) {
		return false;
	}

	@Override
	public int size() {
		return 0;
	}

}
